package com.ruoyi.system.Fdongbei.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.Fdongbei.domain.TbLog;
import com.ruoyi.system.Fdongbei.mapper.TbLogMapper;
import com.ruoyi.system.Fdongbei.service.ITbLogService;
import lombok.Data;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fufeng
 * @since 2025-01-09
 */
@Service
public class TbLogServiceImpl  implements ITbLogService {


    @Resource
    TbLogMapper tbLogMapper;


    @DataSource(value = DataSourceType.LY002_D)
   public int insertLog(TbLog tbLog){
        return tbLogMapper.insertLog(tbLog);
    }

    @DataSource(value = DataSourceType.LY002_D)
    public List<TbLog> selectlog(String date , String date2 ,  String text){
        return tbLogMapper.selectLog(date,date2,text);
    }




}
